package com.four.service.impl;

import com.four.dao.ServiceMapper;
import com.four.service.IServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 于志豪
 * @create 2021-10-24 20:35
 */

@Service("serviceServiceImpl")
public class ServiceServiceImpl implements IServiceService {
    @Autowired
    @Qualifier("serviceMapper")
    private ServiceMapper serviceMapper;

    @Override
    public List<com.four.pojo.Service> findAll() {
        return serviceMapper.findAll();
    }

    @Override
    public List<com.four.pojo.Service> findById(int id) {
        return serviceMapper.findById(id);
    }

}
